package com.mall.system.feign;

import com.mall.common.entity.gateway.GatewayLog;
import com.mall.common.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 日志服务Feign客户端降级处理
 */
@Slf4j
@Component
public class LogServiceFeignClientFallback implements LogServiceFeignClient {
    
    @Override
    public Result<Boolean> saveGatewayLog(GatewayLog gatewayLog) {
        log.error("调用System服务保存网关日志失败，日志ID: {}", gatewayLog.getId());
        return Result.failed("调用System服务保存网关日志失败");
    }
}